import request from '@/utils/request'

// 查询托盘管理列表
export function listPallet(query) {
  return request({
    url: '/order/pallet/list',
    method: 'get',
    params: query
  })
}

// 查询托盘管理详细
export function getPallet(id) {
  return request({
    url: '/order/pallet/' + id,
    method: 'get'
  })
}

// 新增托盘管理
export function addPallet(data) {
  return request({
    url: '/order/pallet',
    method: 'post',
    data: data
  })
}

// 修改托盘管理
export function updatePallet(data) {
  return request({
    url: '/order/pallet',
    method: 'put',
    data: data
  })
}

// 删除托盘管理
export function delPallet(id) {
  return request({
    url: '/order/pallet/' + id,
    method: 'delete'
  })
}
